.class final Lnet/tsapps/topdeals/l;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private synthetic a:Lnet/tsapps/topdeals/DetailActitivty;


# direct methods
.method constructor <init>(Lnet/tsapps/topdeals/DetailActitivty;)V
    .locals 0

    iput-object p1, p0, Lnet/tsapps/topdeals/l;->a:Lnet/tsapps/topdeals/DetailActitivty;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final onClick(Landroid/view/View;)V
    .locals 6

    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.VIEW"

    iget-object v2, p0, Lnet/tsapps/topdeals/l;->a:Lnet/tsapps/topdeals/DetailActitivty;

    invoke-static {v2}, Lnet/tsapps/topdeals/DetailActitivty;->h(Lnet/tsapps/topdeals/DetailActitivty;)Landroid/content/Context;

    move-result-object v2

    iget-object v3, p0, Lnet/tsapps/topdeals/l;->a:Lnet/tsapps/topdeals/DetailActitivty;

    invoke-static {v3}, Lnet/tsapps/topdeals/DetailActitivty;->d(Lnet/tsapps/topdeals/DetailActitivty;)Lnet/tsapps/topdeals/objects/Deal;

    move-result-object v3

    iget-wide v3, v3, Lnet/tsapps/topdeals/objects/Deal;->a:J

    const v5, 0x7f0b0005

    invoke-virtual {v2, v5}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v5, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, "?id="

    invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v3, v4}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    iget-object v1, p0, Lnet/tsapps/topdeals/l;->a:Lnet/tsapps/topdeals/DetailActitivty;

    invoke-virtual {v1, v0}, Lnet/tsapps/topdeals/DetailActitivty;->startActivity(Landroid/content/Intent;)V

    return-void
.end method
